﻿<%@ page title="卡直销管理" language="C#" masterpagefile="MasterPageFrame.master" autoeventwireup="true" inherits="th_admin_dsalelist, App_Web_bgx0xzll" %>
<%@ Register Src="../WebUserControl/PageNavigation.ascx" TagName="PageNavigation"
    TagPrefix="uc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
    <style type="text/css">
#iframedsale{width:100%;height:450px}
.dsalestate0{color:red}
.dsalestate1{color:green}
</style>
<script type="text/javascript">
    window.onload = function() {
        $("#notifytime0,#notifytime1").datepicker({ monthNamesShort: ['一月', '二月', '三月', '四月', '五月', '六月', '七月', '八月', '九月', '十月', '十一月', '十二月'], dayNamesMin: ['日', '一', '二', '三', '四', '五', '六'], changeYear: true, changeMonth: true, dateFormat: 'yy-m-d' });
        $form.setdataByUrl("searchform");
        $("span.dsalestate").each(function(){
            if($(this).text()=="0")
            {
                $(this).text("未发货");
            }
            else
            {
                $(this).text("已发货");
            }
        });
    }
    function __modify(_dsaleid) {
        document.getElementById("iframedsale").contentWindow.document.location = "dsalemodify.aspx?dsaleid=" + _dsaleid;

        $('#dialogDsale').dialog({
            autoOpen: false,
            width: 680,
            resizable: false,
            modal: true,
            title: "备注"
        });

        $('#dialogDsale').dialog('open');
    }
    function __export() {
        window.open("dsalelistexport.aspx");
    }
</script>

</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <form method="get" id="searchform">
        <fieldset><legend>搜索</legend>
            <table>
                <tr>
                    <td>状态<select name="dsalestate" id="dsalestate"><option value="">所有</option><option value="0">未发货</option><option value="1">已发货</option></select></td>
                    <td>礼品卡名称<input type="text" name="cardtypename"/></td>
                    <td>姓名<input type="text" name="truename"/>
                    </td>
                    <td>支付到帐时间范围:从<input type="text" name="notifytime0" id="notifytime0" class="inputdate"/>至<input type="text" name="notifytime1" id="notifytime1" class="inputdate"/></td>
                    <td>
                        <input type="submit" value="搜索" name="btnsubmit" />
                    </td>
                </tr>
            </table>
            
        </fieldset>
    </form>
    <div id="pagelist1" runat="server"></div>
    <uc1:PageNavigation id="PageNavigation1" runat="server">
    </uc1:PageNavigation>
    <fieldset><legend>财务统计</legend>
        <div id="text1" runat="server"></div>
        <input type="button" value="把当前查询结果导出成excell" onclick="javascript:__export();"/>
    </fieldset>
    
    <div id="dialogDsale" class="X-dialog">
        <iframe src="" id="iframedsale" frameborder="0"></iframe>
    </div>
</asp:Content>

